package com.apply.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.apply.dao.teacherDao;
import com.apply.entity.Department;
import com.apply.entity.Page;
import com.apply.entity.Teachers_mod;
import com.apply.entity.campus;
import com.apply.entity.position;
import com.apply.entity.teachers;
import com.apply.service.teacherService;

@Service
public class teacherServiceImpl implements teacherService {

	@Autowired
	private teacherDao td;
	

	@Override
	public int addTeachers(Teachers_mod teschers) {
		// TODO Auto-generated method stub
		return td.addTeachers(teschers);
	}

	@Override
	public List<position> getPosition() {
		// TODO Auto-generated method stub
		return td.getPosition();
	}

	@Override
	public List<Department> getDepartment() {
		// TODO Auto-generated method stub
		return td.getDepartment();
	}

	@Override
	public List<campus> getCampus() {
		// TODO Auto-generated method stub
		return td.getCampus();
	}

	@Override
	public List<teachers> getTeachers(int campusId, String name,
			int Departmentname, int position, Page p) {
		// TODO Auto-generated method stub
		return td.getTeachers(campusId, name, Departmentname, position, p);
	}

	@Override
	public int getCount(int id) {
		// TODO Auto-generated method stub
		return td.getCount(id);
	}

	@Override
	public int getlikeUserCounts(String name, int Departmentname, int position,
			int cap) {
		// TODO Auto-generated method stub
		return td.getlikeUserCounts(name, Departmentname, position, cap);
	}

	@Override
	public int getThisTeacher(String phone) {
		// TODO Auto-generated method stub
		return td.getThisTeacher(phone);
	}


	@Override
	public int getteacherIdto() {
		// TODO Auto-generated method stub
		return td.getteacherIdto();
	}

	@Override
	public int addThisTeacher(String userCode, String name, String sex,
			String phone, String img, String date, String info,
			int departmentid, int position, int campusid) {
		// TODO Auto-generated method stub
		return td.addThisTeacher(userCode, name, sex, phone, img, date, info, departmentid, position, campusid);
	}

	@Override
	public teachers getteacherallid(String id1) {
		// TODO Auto-generated method stub
		return td.getteacherallid(id1);
	}

	@Override
	public int setTeachertoMysql(String name, int department, int position,
			String phone) {
		// TODO Auto-generated method stub
		return td.setTeachertoMysql(name, department, position, phone);
	}

	@Override
	public int setteacherisdel(String phone) {
		// TODO Auto-generated method stub
		return td.setteacherisdel(phone);
	}

	@Override
	public int setteachertoinfotoMysql(String name, String phone, String info,
			int ids, int idss, String Myphone) {
		// TODO Auto-generated method stub
		return td.setteachertoinfotoMysql(name, phone, info, ids, idss, Myphone);
	}

	

}
